package com.qdxwx.data.mapper.user;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.user.UserVitae;
import com.qdxwx.models.user.UserVitaeQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserVitaeMapper {

    int insertUserVitae(UserVitae userVitae);

    UserVitae selectById(int id);

    UserVitae selectByUserId(long id);

    List<UserVitae> selectList(@Param("e") UserVitaeQuery query, @Param("page") PageRequest page);

    int selectCount(@Param("e") UserVitaeQuery query);

    int updataUserVitae(UserVitae userVitae);

    int updateVitaePath(int id, String path);

    int deleteById(int id);
}
